import request from '@/utils/request'

// 查询比赛管理列表
export function listCompetition(query) {
    return request({
        url: '/business/competition/list',
        method: 'get',
        params: query
    })
}

// 查询比赛管理详细
export function getCompetition(competingId) {
    return request({
        url: '/business/competition/' + competingId,
        method: 'get'
    })
}

// 新增比赛管理
export function addCompetition(data) {
    return request({
        url: '/business/competition',
        method: 'post',
        data: data
    })
}

// 修改比赛管理
export function updateCompetition(data) {
    return request({
        url: '/business/competition',
        method: 'put',
        data: data
    })
}

// 删除比赛管理
export function delCompetition(competingId) {
    return request({
        url: '/business/competition/' + competingId,
        method: 'delete'
    })
}
